package com.woniuxy.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

public class MySecondController {
    @RequestMapping("/findOne")
    public ModelAndView findOne(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","欢迎来到召唤师峡谷");
        modelAndView.setViewName("/index.jsp");
        return modelAndView;
    }
    @RequestMapping("/findAll")
    public ModelAndView findAll(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","欢迎来到召唤师峡谷2");
        modelAndView.setViewName("/index.jsp");
        return modelAndView;
    }
}
